

function htmlreplace(a, b, element) {    
    if (!element) element = document.body;    
    var nodes = element.childNodes;
    for (var n=0; n<nodes.length; n++) {
        if (nodes[n].nodeType == Node.TEXT_NODE) {
            var r = new RegExp(a, 'gi');
            nodes[n].textContent = nodes[n].textContent.replace(r, b);
        } else {
            htmlreplace(a, b, nodes[n]);
        }
    }
}


var mydata=[


["功能組別","功能組別(16席0票當選)"],
["功能界別","功能界別(16席0票當選)"],

["民主黨","民主黨(247220票6席)"],
["白鴿黨","白鴿黨(247220票6席)"],
["民建聯","民建聯(366140票13席)"],
["民主建港聯盟","民主建港聯盟(366140票13席)"],
["民主建港協進聯盟","民主建港協進聯盟(366140票13席)"],
["民記","民記(366140票13席)"],
["禮義廉","禮義廉(366140票13席)"],
["公民黨","公民黨(255007票6席)"],
["人民力量","人民力量(176250票3席)"],
["人力","人力(176250票3席)"],
["社民連","社民連(87997票1席)"],
["社會民主連線","社會民主連線(87997票1席)"],
["工聯會","工聯會(127857票6席,其中2人0票)"],
["工黨","工黨(112140票4席)"],
["自由黨","自由黨(48792票5席)"],
["新民黨","新民黨(68097票2席)"],
["街工","街工(43799票1席)"],
["新民主同盟","新民主同盟(28621票1席)"],
["民協","民協(30634票1席)"],
["經濟動力","經濟動力(5717票3席)"],
["經民聯","經民聯(37567票7席,其中4人0票)"],
["經濟民生聯盟","經濟民生聯盟(37567票7席,其中4人0票)"],
["勞聯","勞聯(0票1席)"],
["新世紀論壇","新世紀論壇(0票1席)"],
["泛民主派","泛民"], 
["民主派","民主派(60%得票/981668票,27席)"],
["泛民","泛民(60%得票/981668票,27席)"],
["反對派","反對派(60%得票/981668票,27席)"],
["保皇派","保皇派(40%得票/648453票,43席)"],
["保皇黨","保皇黨(40%得票/648453票,43席)"],
["建制派","建制派(40%得票/648453票,43席)"],
["親中派","建制派(40%得票/648453票,43席)"],

["劉皇發","劉皇發(0票)"],
["陳健波","陳健波(0票)"],
["易志明","易志明(0票)"],
["郭偉強","郭偉強(0票)"],
["鄧家彪","鄧家彪(0票)"],
["潘兆平","潘兆平(0票)"],
["石禮謙","石禮謙(0票)"],
["林健鋒","林健鋒(0票)"],
["廖長江","廖長江(0票)"],
["梁君彥","梁君彥(0票)"],
["林大輝","林大輝(0票)"],
["吳亮星","吳亮星(0票)"],
["黃定光","黃定光(0票)"],
["方剛","方剛(0票)"],
["張宇人","張宇人(0票)"],
["葉國謙","葉國謙(0票)"],
["林德明","林德明(5票)"],
["陳美德","陳美德(18票)"],
["鄧予立","鄧予立(24票)"],
["甄文星","甄文星(25票)"],
["何俊賢","何俊賢(105票)"],
["蕭思江","蕭思江(109票)"],
["李君豪","李君豪(202票)"],
["張華峯","張華峯(208票)"],
["陸宏廣","陸宏廣(392票)"],
["葉慶寧","葉慶寧(403票)"],
["周俊輝","周俊輝(477票)"],
["姚思榮","姚思榮(523票)"],
["陳亨利","陳亨利(843票)"],
["陳普芬","陳普芬(896票)"],
["鍾國斌","鍾國斌(1076票)"],
["梁安琪","梁安琪(1077票)"],
["馬逢國","馬逢國(1106票)"],
["陳義飛","陳義飛(1113票)"],
["黃宏泰","黃宏泰(1335票)"],
["吳永輝","吳永輝(1464票)"],
["劉秀成","劉秀成(1607票)"],
["何鍾泰","何鍾泰(1625票)"],
["謝偉銓","謝偉銓(1668票)"],
["黎廣德","黎廣德(1952票)"],
["王桂壎","王桂壎(1970票)"],
["譚偉豪","譚偉豪(2063票)"],
["謝鴻興","謝鴻興(2205票)"],
["郭榮鏗","郭榮鏗(2528票)"],
["盧偉國","盧偉國(2811票)"],
["莫乃光","莫乃光(2828票)"],
["何民傑","何民傑(2875票)"],
["麥業成","麥業成(2896票)"],
["吳文遠","吳文遠(3169票)"],
["梁家騮","梁家騮(4541票)"],
["曹聖玉","曹聖玉(5006票)"],
["譚香文","譚香文(5440票)"],
["邱榮光","邱榮光(5717票)"],
["龐一鳴","龐一鳴(6031票)"],
["林智遠","林智遠(6538票)"],
["梁繼昌","梁繼昌(7701票)"],
["張國柱","張國柱(9078票)"],
["曾健成","曾健成(9280票)"],
["蔡耀昌","蔡耀昌(10028票)"],
["何君堯","何君堯(10805票)"],
["陳一華","陳一華(11997票)"],
["何漢權","何漢權(15170票)"],
["李國麟","李國麟(15861票)"],
["陳強","陳強(16767票)"],
["勞永樂","勞永樂(16900票)"],
["劉健儀","劉健儀(17686票)"],
["劉嘉鴻","劉嘉鴻(18667票)"],
["蕭若元","蕭若元(18667票,名單第二位)"],
["黃成智","黃成智(21118票)"],
["龐愛蘭","龐愛蘭(23988票)"],
["葉偉明","葉偉明(24458票)"],
["方國珊","方國珊(24594票)"],
["陳樹英","陳樹英(25892票)"],
["陶君行","陶君行(27253票)"],
["王國興","王國興(27336票)"],
["范國威","范國威(28621票)"],
["葉劉淑儀","葉劉淑儀(30289票)"],
["譚國僑","譚國僑(30634票)"],
["廖成利","廖成利(30634票,名單第二位)"],
["田北俊","田北俊(31106票)"],
["周梁淑怡","周梁淑怡(31106票,名單第二位)"],
["何秀蘭","何秀蘭(31523票)"],
["湯家驊","湯家驊(32753票)"],
["李永達","李永達(32792票)"],
["梁志祥","梁志祥(33777票)"],
["鍾樹根","鍾樹根(33901票)"],
["梁美芬","梁美芬(34548票)"],
["麥美娟","麥美娟(35239票)"],
["黃碧雲","黃碧雲(36029票)"],
["張文光","張文光(36029票,名單第二位)"],
["曾鈺成","曾鈺成(36517票)"],
["陳恆鑌","陳恆鑌(36555票)"],
["黃洋達","黃洋達(36608票)"],
["陳秀慧","陳秀慧(36608票,名單第二位)"],
["劉慧卿","劉慧卿(37039票)"],
["田北辰","田北辰(37808票)"],
["毛孟靜","毛孟靜(37925票)"],
["王德全","王德全(37925票,名單第二位)"],
["陳志全","陳志全(38042票)"],
["袁彌明","袁彌明(38042票,名單第二位)"],
["謝偉俊","謝偉俊(38546票)"],
["黃毓民","黃毓民(38578票)"],
["嚴達明","嚴達明(38578票,名單第二位)"],
["張超雄","張超雄(39650票)"],
["單仲偕","單仲偕(40558票)"],
["黃國健","黃國健(40824票)"],
["李卓人","李卓人(40967票)"],
["陳克勤","陳克勤(40977票)"],
["劉國勳","劉國勳(40977票,名單第二位)"],
["梁家傑","梁家傑(41669票)"],
["譚文豪","譚文豪(41669票,名單第二位)"],
["譚耀宗","譚耀宗(43496票)"],
["胡志偉","胡志偉(43764票)"],
["梁耀忠","梁耀忠(43799票)"],
["陳偉業","陳偉業(44355票)"],
["葛珮帆","葛珮帆(46139票)"],
["葉建源","葉建源(46535票)"],
["蔣麗芸","蔣麗芸(47363票)"],
["陳鑑林","陳鑑林(47415票)"],
["白韻琹","白韻琹(61321票)"],
["陳家洛","陳家洛(70475票,名單第二位)"],
["陳淑莊","陳淑莊(70475票)"],
["郭家麒","郭家麒(72185票)"],
["余若薇","余若薇(72185票,名單第二位)"],
["劉江華","劉江華(199732功能組別票)"],
["何俊仁","何俊仁(228840功能組別票)"],
["鄺俊宇","鄺俊宇(228840功能組別票,名單第二位)"],
["陳婉嫻","陳婉嫻(246196功能組別票)"],
["馮檢基","馮檢基(262172功能組別票)"],
["李慧瓊","李慧瓊(277143功能組別票)"],
["涂謹申","涂謹申(316468功能組別票)"],
["趙家賢","趙家賢(316468功能組別票,名單第二位)"],
["區諾軒","區諾軒(316468功能組別票,名單第三位)"],
["梁國雄","梁國雄(48295票)"],

["曾蔭權","曾蔭權(649票)"],
["貪曾","貪曾(649票)"],
["董建華","董建華(320票)"],
["老董","老董(320票)"],
["老懵董","老懵董(320票)"],
["梁振英","梁振英(689票)"],
["狼英","狼英(689票)"],
["梁營","梁營(689票)"],
["特區政府","特區政府(689票)"],
["唐營","唐營(285票)"],
["唐英年","唐英年(285票)"],
["民進黨","民進黨(6093578票)"],
["國民黨","國民黨(6891139票)"],
["鄉議局","鄉議局(0票獲1席)"],

["大班","大班(73479票,04年)"],
["鄭經翰","鄭經翰(73479票,04年)"],
["李柱銘","李柱銘(131788票,04年)"],
["黃宏發","黃宏發(23081票,04年)"],
["陸恭蕙","陸恭蕙(39251票,98年)"],
["簡炳墀","簡炳墀(6637票,98年)"],
["李鵬飛","李鵬飛(33858票,98年)"],
["飛哥","飛哥(33858票,98年)"],
["吳明欽","吳明欽(42319票,91年)"],
["五區總辭","五區總辭(559966票)"],
["變相公投","變相公投(559966票)"],
["五區公投","五區公投(559966票)"],
["陳方安生","陳方安生(175874票,07年)"],
["司徒華","司徒華(145986票,98年)"]

];

for(var i=0;i<mydata.length;i++){htmlreplace(mydata[i][0],mydata[i][1]);}
